package com.zmn.plat.services.impl.product;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zmn.plat.model.entity.product.FicoCategory;
import com.zmn.plat.persistence.interfaces.product.FicoCategoryDAO;
import com.zmn.plat.services.interfaces.product.FicoCategoryService;

/**
 * FicoCategoryServiceImpl
 *
 * @author tanghongjun
 */
@Service
public class FicoCategoryServiceImpl implements FicoCategoryService {

    @Resource
    private FicoCategoryDAO ficoCategoryDAO;

    @Override
    public FicoCategory findByKey(Integer categId) {
        return ficoCategoryDAO.findByKey(categId);
    }

    @Override
    public List<FicoCategory> findByKeys(List<Integer> categId) {
        return ficoCategoryDAO.findByKeys(categId);
    }

    @Override
    public List<FicoCategory> listAll() {
        return ficoCategoryDAO.listAll();
    }
}